import alova from '@/utils/alova'

// 用户列表
export const userList = (data) => {
  return alova.Post('/sys/user/lists', data)
}

// 新增
export const userSave = (data) => {
  return alova.Post('/sys/user/save', data)
}

// 修改
export const userUpdate = (data) => {
  return alova.Post('/sys/user/update', data)
}

// 查询
export const userInfo = (id) => {
  return alova.Get(`/sys/user/info/${id}`)
}

// 删除
export const userDelete = (data) => {
  return alova.Post('/sys/user/delete', data)
}

// 所有角色
export const allRoles = (params) => {
  return alova.Get('/sys/role/select', params)
}
